$(
    function ()
    {

        if ($("#deleteSpan").hasClass("nodelete"))
        {
            alert("无法删除，请先删除有关商品");
            // console.log("a");
            $(this).removeClass("nodelete");
        }

        $("#productImage_form1").submit(
            function () {
                if(!checkEmpty("Image_file1","单个图片"))
                    return false;
            }
        );
        $("#productImage_form2").submit(
            function () {
                if(!checkEmpty("Image_file2","详情图片"))
                    return false;
            }
        );
    }
)